package com.gable.exhibition.dao;

import com.gable.exhibition.model.Hospital;
import com.gable.exhibition.view.HospitalView;

import java.util.List;
import java.util.Map;

public interface HospitalDao {
    int deleteByPrimaryKey(Long hospitalId);

    int insert(Hospital record);

    int insertSelective(Hospital record);

    Hospital selectByPrimaryKey(Long hospitalId);

    int updateByPrimaryKeySelective(Hospital record);

    int updateByPrimaryKey(Hospital record);

    /**
     * 获取医院列表 用来下拉框显示
     * @Create user jacky
     * @Create date 2018/2/6
     * @return
     */
    List<Hospital> queryHospitalListBySelect(Map map);

    /**
     * 获取医院总数
     * @param hospitalView
     * @Create user jacky
     * @Create date 2018/2/8
     * @return
     */
    int queryHospitalCount(HospitalView hospitalView);

    /**
     * 获取医院列表分页
     * @param hospitalView
     * @Create user jacky
     * @Create date 2018/2/8
     * @return
     */
    List<HospitalView> queryHospitalList(HospitalView hospitalView);

    /**
     * 获取医院详情
     * @param hospitalId
     * @Create date 2018/2/8
     * @Create user jacky
     * @return
     */
    HospitalView queryHospitalInfo(Long hospitalId);

    /**
     * 校验医院名称是否重复
     * @param hospitalView
     * @Create date 2018/2/8
     * @Create user jacky
     * @return
     */
    int checkHospitalName(HospitalView hospitalView);
}